package com.zhongfl.crm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author wang.yuchuan
 * @date 2018/9/19
 */
@Controller
public class IndexController {

    @GetMapping("/")
    public String root() {
        return "index";
    }

    @GetMapping("/index")
    public String index() {
        return "index";
    }

    @GetMapping("/error_404")
    public String notFoundError() {
        return "404";
    }

    @GetMapping("/error_500")
    public String serverError() {
        return "500";
    }

    @GetMapping("/error_403")
    public String forbiddenError() {
        return "403";
    }

    @GetMapping("/test")
    public String test() {
        return "test";
    }

    /**
     * 客户订单管理
     *
     * @author LuWan
     */
    @GetMapping("/customerOrder")
    public String customerOrder() {
        return "order/customer/list";
    }

    /**
     * 客户订单详情
     *
     * @author LuWan
     */
    @GetMapping("/customer/order/detail")
    public String customerOrderDetail() {
        return "order/customer/detail";
    }

    /**
     * 交付订单管理
     *
     * @author Ya
     */
    @GetMapping("/deliverOrder")
    public String deliverOrder() {
        return "order/deliver/list";
    }

    /**
     * 交付订单详情
     *
     * @author Ya
     */
    @GetMapping("/deliverOrder/detail")
    public String deliverOrderDetail() {
        return "order/deliver/detail";
    }

    /**
     * 渠道管理
     *
     * @author Ya
     */
    @GetMapping("/channel/list")
    public String channel() {
        return "channel/list";
    }

    /**
     * 渠道详情
     *
     * @author Ya
     */
    @GetMapping("/channel/detail")
    public String channelDetail() {
        return "channel/detail";
    }
    /**
     * 部门管理
     *
     * @author XiangRiKui
     */
    @GetMapping("/department")
    public String department() {
        return "user/list";
    }

    /**
     * 用户管理
     *
     * @author XiangRiKui
     */
    @GetMapping("/user")
    public String user() {
        return "user/list";
    }

    /**
     * 产品管理
     *
     * @author XiangRiKui
     */
    @GetMapping("/product")
    public String product() {
        return "product/list";
    }

    @GetMapping("/tools/taskconf")
    public String taskConf() {
        return "tools/taskconf";
    }


    @GetMapping("/tools/index")
    public String tools() {
        return "tools/index";
    }

    /**
     * 消息日志
     *
     * @author 奈良鹿丸
     */
    @GetMapping("/lxMessageLog")
    public String messageLog(){
        return "messageLog/list";
    }
}
